<template>
	<view style="background-color: #ebebec;width: 100%;height: 100vh;padding:  2% 0;overflow-y: auto;">
		<view class="" v-if="type=='项目管理' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="项目名称" :rightText="dateDetail.projectName"></uni-list-item>
					<uni-list-item title="项目类型" :rightText="dateDetail.projectType"></uni-list-item>
					<uni-list-item title="专测" :rightText="dateDetail.manager"></uni-list-item>
					<uni-list-item title="位置"></uni-list-item>
					<uni-list-item title="总包单位" :rightText="ddateDetail.contractUnit"></uni-list-item>
					<uni-list-item title="开始时间" :rightText="dateDetail.startTime"></uni-list-item>
					<uni-list-item title="结束时间" :rightText="dateDetail.endTime"></uni-list-item>
					<uni-list-item title="所属区域" :rightText="dateDetail.belongArea"></uni-list-item>
					<uni-list-item title="经纬度" :rightText="dateDetail.coordinate"></uni-list-item>
					<view v-if="dateDetail.ststate == 0 || dateDetail.ststate == 3">
						<uni-list-item title="经纬度" :rightText="dateDetail.ststate == 0 ? '失效' : '已完成'"></uni-list-item>
					</view>
					<view v-else-if="dateDetail.ststate == 1 || dateDetail.ststate == 2">
						<uni-list-item title="状态" :rightText="dateDetail.ststate == 1 ? '待开始' : '进行中'"></uni-list-item>
					</view>
					<uni-list-item title="关联成员(人)" :rightText="dateDetail.personList.length"></uni-list-item>
					<uni-list-item title="关联车辆"></uni-list-item>
					<uni-list-item title="关联设备" :rightText="dateDetail.deviceList.length"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>
		<view class="" v-if="type=='项目管理信息' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="项目名称" :rightText="dateDetail.name"></uni-list-item>
					<uni-list-item title="是否院管" :rightText="dateDetail.isYardManage"></uni-list-item>
					<uni-list-item title="测绘项目编号" :rightText="dateDetail.projectNum"></uni-list-item>
					<uni-list-item title="阶段编号" :rightText="dateDetail.stageNum"></uni-list-item>
					<uni-list-item title="阶段名称" :rightText="ddateDetail.stageName"></uni-list-item>
					<uni-list-item title="业主单位" :rightText="dateDetail.ownerUnit"></uni-list-item>
					<uni-list-item title="项目承担部门" :rightText="dateDetail.bearDepartment"></uni-list-item>
					<uni-list-item title="项目负责人" :rightText="dateDetail.director"></uni-list-item>
					<uni-list-item title="主管副总" :rightText="dateDetail.charge"></uni-list-item>
					<uni-list-item title="工程地点" :rightText="dateDetail.place"></uni-list-item>
					<uni-list-item title="计划开工日" :rightText="dateDetail.planStartDate"></uni-list-item>
					<uni-list-item title="委派单位" :rightText="dateDetail.assignUnit"></uni-list-item>
					<uni-list-item title="集团验收日期" :rightText="dateDetail.groupCheckDate"></uni-list-item>
					<uni-list-item title="是否为资质系统年报项目" :rightText="dateDetail.isAnnualReport"></uni-list-item>
					<uni-list-item title="汇交北京规委时间" :rightText="dateDetail.deliveryCommissionDate"></uni-list-item>
					<uni-list-item title="备注" :rightText="dateDetail.remark"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>
		<view class="" v-if="type=='专利管理' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="项目名称" :rightText="dateDetail.name"></uni-list-item>
					<uni-list-item title="申请时间" :rightText="dateDetail.applyDate"></uni-list-item>
					<uni-list-item title="申请专利名称" :rightText="dateDetail.applyName"></uni-list-item>
					<uni-list-item title="申请号" :rightText="dateDetail.applyNum"></uni-list-item>
					<uni-list-item title="专利类型" :rightText="ddateDetail.applyType"></uni-list-item>
					<uni-list-item title="当前权利人" :rightText="dateDetail.rightsUser"></uni-list-item>
					<uni-list-item title="当前法律状态" :rightText="dateDetail.lawState"></uni-list-item>
					<uni-list-item title="授权公告日" :rightText="dateDetail.empowerDate"></uni-list-item>
					<uni-list-item title="发明人" :rightText="dateDetail.inventor"></uni-list-item>
					<uni-list-item title="备注" :rightText="dateDetail.remark"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>
		<view class="" v-if="type=='软件管理' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="项目名称" :rightText="dateDetail.name"></uni-list-item>
					<uni-list-item title="制造商" :rightText="dateDetail.marker"></uni-list-item>
					<uni-list-item title="进口/国产" :rightText="dateDetail.importDomestic"></uni-list-item>
					<uni-list-item title="品牌型号" :rightText="dateDetail.model"></uni-list-item>
					<uni-list-item title="出厂编号" :rightText="ddateDetail.rightsUser"></uni-list-item>
					<uni-list-item title="购置数量" :rightText="dateDetail.applyUnit"></uni-list-item>
					<uni-list-item title="单位" :rightText="dateDetail.unit"></uni-list-item>
					<uni-list-item title="版本号" :rightText="dateDetail.versionNum"></uni-list-item>
					<uni-list-item title="功能模块" :rightText="dateDetail.functionModel"></uni-list-item>
					<uni-list-item title="加密方式" :rightText="dateDetail.encryptionMethod"></uni-list-item>
					<uni-list-item title="发票单位" :rightText="dateDetail.travelExpense"></uni-list-item>
					<uni-list-item title="发票日期" :rightText="dateDetail.billDate"></uni-list-item>
					<uni-list-item title="所在部门" :rightText="dateDetail.department"></uni-list-item>
					<uni-list-item title="申请人" :rightText="dateDetail.applicant"></uni-list-item>
					<uni-list-item title="领用人" :rightText="dateDetail.receiver"></uni-list-item>
					<uni-list-item title="领用日期" :rightText="dateDetail.receiveDate"></uni-list-item>
					<uni-list-item title="归还日期" :rightText="dateDetail.returnDate"></uni-list-item>
					<uni-list-item title="备注" :rightText="dateDetail.remark"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>
		<view class="" v-if="type=='获奖管理' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="项目名称" :rightText="dateDetail.projectName"></uni-list-item>
					<uni-list-item title="奖金年度" :rightText="dateDetail.prizeYear"></uni-list-item>
					<uni-list-item title="奖项等级" :rightText="dateDetail.prizeLevel"></uni-list-item>
					<uni-list-item title="颁发机构" :rightText="dateDetail.applyType"></uni-list-item>
					<uni-list-item title="完成单位" :rightText="ddateDetail.rightsUser"></uni-list-item>
					<uni-list-item title="主要参与人员" :rightText="dateDetail.mainParticipant"></uni-list-item>
					<uni-list-item title="电子存档情况" :rightText="dateDetail.electronicArchiving"></uni-list-item>
					<uni-list-item title="备注" :rightText="dateDetail.remark"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>
		<view class="" v-if="type=='测绘管理' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="项目名称" :rightText="dateDetail.projectName"></uni-list-item>
					<uni-list-item title="申请单编号" :rightText="dateDetail.applyNum"></uni-list-item>
					<uni-list-item title="项目批文" :rightText="dateDetail.projectApproval"></uni-list-item>
					<uni-list-item title="项目编号" :rightText="dateDetail.projectNum"></uni-list-item>
					<uni-list-item title="成果名称" :rightText="ddateDetail.rightsUser"></uni-list-item>
					<uni-list-item title="申请单位" :rightText="dateDetail.applyUnit"></uni-list-item>
					<uni-list-item title="申请人" :rightText="dateDetail.applicant"></uni-list-item>
					<uni-list-item title="联系电话" :rightText="dateDetail.phone"></uni-list-item>
					<uni-list-item title="紧急程度" :rightText="dateDetail.urgent"></uni-list-item>
					<uni-list-item title="申请时间" :rightText="ddateDetail.applyDate"></uni-list-item>
					<uni-list-item title="差旅费" :rightText="dateDetail.travelExpense"></uni-list-item>
					<uni-list-item title="其他费用" :rightText="dateDetail.applyType"></uni-list-item>
					<uni-list-item title="费用合计" :rightText="dateDetail.totalExpenses"></uni-list-item>
					<uni-list-item title="备注" :rightText="dateDetail.remark"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>
		<view class="" v-if="type=='员工培训统计' &&dateDetail">
			<uni-card>
				<uni-list :border="false">
					<uni-list-item title="单位" :rightText="dateDetail.unit"></uni-list-item>
					<uni-list-item title="类型" :rightText="dateDetail.type"></uni-list-item>
					<uni-list-item title="姓名" :rightText="dateDetail.name"></uni-list-item>
					<uni-list-item title="部门(所)" :rightText="dateDetail.group"></uni-list-item>
					<uni-list-item title="岗位" :rightText="ddateDetail.post"></uni-list-item>
					<uni-list-item title="完成总学时"></uni-list-item>
					<uni-list-item title="学时分布" :rightText="dateDetail.classHourDistribute"></uni-list-item>
					<uni-list-item title="培训班名称或培训内容" :rightText="dateDetail.trainContent"></uni-list-item>
					<uni-list-item title="培训机构" :rightText="dateDetail.trainOrganization"></uni-list-item>
					<uni-list-item title="培训类型" :rightText="ddateDetail.trainType"></uni-list-item>
					<uni-list-item title="培训方式" :rightText="dateDetail.trainMethods"></uni-list-item>
					<uni-list-item title="培训起止时间" :rightText="dateDetail.trainStartDate"></uni-list-item>
					<uni-list-item title="备注" :rightText="dateDetail.remark"></uni-list-item>
				</uni-list>
			</uni-card>
		</view>

	</view>
</template>
<script>
	export default {
		data() {
			return {
				dateDetail: {},
				type: ''
			}
		},
		onLoad(option) {
			console.log(option.dateDetail, '上个页面'); //打印出上个页面传递的参数。
			this.dateDetail = JSON.parse(option.dateDetail) //当前页面数据
			this.type = option.type //上一页类型
		},
		methods: {}
	}
</script>
<style>
</style>